/*
 * smartidea_shop
 * Created by upon
 */
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:smartidea_shop/provider/base.dart';
import 'views/app.dart';

class SmartideaShop extends StatelessWidget {
  late final BaseState _baseState;
  SmartideaShop(
      {Key? key, required String loginToken, String? navigateTo = '/'})
      : super(key: key) {
    _baseState = BaseState(loginToken: loginToken, navigateTo: navigateTo);
  }

  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        ChangeNotifierProvider(
          create: (_) {
            return BaseProvider(baseState: _baseState);
          },
        )
      ],
      child: const App(),
    );
  }
}
